import { defHttp } from '/@/utils/http/axios';
import { getMenuListByIdParams, getMenuListByIdParamsResultModel } from './model/menuModel';
enum Api {
  GetMenuListById = '/system/menu/listByAnt',
}

/**
 * @description: Get user menu based on id
 */

export const getMenuListById = (params?: getMenuListByIdParams) => {
  return defHttp.post<getMenuListByIdParamsResultModel>({
    url: Api.GetMenuListById,
    params,
    // headers: {
    //   'Content-Type': 'application/json;charset=UTF-8',
    // },
  });
};
